﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Sole
{
    public class Background : Entity
    {

        public Background(SpriteBatch spritebatch, Game game)
            : base(spritebatch, game)
        {
        }

        public Background(SpriteBatch spritebatch, Game game, Texture2D texture)
            : base(spritebatch, game)
        {
            this.texture = texture;
        }

        public override void Initialize()
        {
            screenBoundaries = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height);
            position = new Vector2(screenBoundaries.Width * 0.5f, screenBoundaries.Height * 0.5f);

            position.X = screenBoundaries.Width;
            position.Y = screenBoundaries.Height / 2;

            base.Initialize();
        }

        protected override void LoadContent()
        {
            //texture = Game.Content.Load<Texture2D>(@"Images//BackgroundsTest");
            origin = new Vector2(texture.Width, (float)texture.Height * 0.5f);
            //base.LoadContent();
        }

        public override void Update(GameTime gameTime)
        {
            //position.X = screenBoundaries.Width;
            //position.Y = screenBoundaries.Height / 2;
        }

        public override void OnCollision()
        {
        }

    }
}
